package com.wuzhun.wxmp.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户登录Token表
 * </p>
 *
 * @author renbaolin
 * @since 2022-12-05
 */
@Data
@Accessors(chain = true)
@TableName("pre_token")
@ApiModel(value = "Token对象", description = "用户登录Token表")
public class Token extends BaseEntity {

    @ApiModelProperty("uid")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("token")
    @TableField("token")
    private String token;

    @ApiModelProperty("ip地址")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("过期时间")
    @TableField("expire_time")
    private Date expireTime;


}
